#pragma once

#include "object/item.h"
#include "object/updatefields.h"

#define MAX_BAG_SIZE ((CONTAINER_END - CONTAINER_FIELD_SLOT_1)/2)                                     // 1.12

namespace battle::object
{

    class Bag : public Item
    {
    public:
        unsigned int GetBagSize() const { return GetUint32Value(CONTAINER_FIELD_NUM_SLOTS); }
        Item* GetItemByPos(unsigned char slot) const;

    protected:
        Item* m_bagslot[MAX_BAG_SIZE];
    };

}
